package com.bi.student.controller;

import com.bi.student.dubbo.consumers.StudentService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@Api(tags = "调用远程服务")
@RestController
@RequestMapping("/student")
public class StudentController {

    @Resource
    private StudentService studentService;

    @ApiOperation("测试远程服务调用")
    @RequestMapping(value = "/getActivity", method = RequestMethod.GET)
    public Integer getActivity() {
        return studentService.getActivity();
    }

}
